home *** CD-ROM | disk | FTP | other *** search
- unit delphi_TLB;
-
- // ************************************************************************ //
- // WARNING //
- // ------- //
- // The types declared in this file were generated from data read from a //
- // Type Library. If this type library is explicitly or indirectly (via //
- // another type library referring to this type library) re-imported, or the //
- // 'Refresh' command of the Type Library Editor activated while editing the //
- // Type Library, the contents of this file will be regenerated and all //
- // manual modifications will be lost. //
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.11.1.63 $
- // File generated on 19/11/98 18:27:05 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: E:\Developer\Delphi\COM\ASP\15Seconds\delphi.tlb
- // IID\LCID: {90A90DC0-38A2-11D0-A4D6-C95D0F807C0B}\0
- // Helpfile:
- // HelpString: Project1 Library
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLASS_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- const
- LIBID_delphi: TGUID = '{90A90DC0-38A2-11D0-A4D6-C95D0F807C0B}';
- IID_ISimpleObject: TGUID = '{90A90DC1-38A2-11D0-A4D6-C95D0F807C0B}';
- CLASS_SimpleObject: TGUID = '{90A90DC3-38A2-11D0-A4D6-C95D0F807C0B}';
- IID_ISQLObj: TGUID = '{F4A0F764-78B1-11D2-A4D6-8AC98C355D52}';
- CLASS_SQLObj: TGUID = '{F4A0F766-78B1-11D2-A4D6-8AC98C355D52}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- ISimpleObject = interface;
- ISimpleObjectDisp = dispinterface;
- ISQLObj = interface;
- ISQLObjDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- SimpleObject = ISimpleObject;
- SQLObj = ISQLObj;
-
-
- // *********************************************************************//
- // Interface: ISimpleObject
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {90A90DC1-38A2-11D0-A4D6-C95D0F807C0B}
- // *********************************************************************//
- ISimpleObject = interface(IDispatch)
- ['{90A90DC1-38A2-11D0-A4D6-C95D0F807C0B}']
- function Get_FirstName: WideString; safecall;
- procedure Set_FirstName(const Value: WideString); safecall;
- function Get_LastName: WideString; safecall;
- procedure Set_LastName(const Value: WideString); safecall;
- procedure WriteData; safecall;
- procedure OnStartPage(const unk: IUnknown); safecall;
- procedure OnEndPage; safecall;
- property FirstName: WideString read Get_FirstName write Set_FirstName;
- property LastName: WideString read Get_LastName write Set_LastName;
- end;
-
- // *********************************************************************//
- // DispIntf: ISimpleObjectDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {90A90DC1-38A2-11D0-A4D6-C95D0F807C0B}
- // *********************************************************************//
- ISimpleObjectDisp = dispinterface
- ['{90A90DC1-38A2-11D0-A4D6-C95D0F807C0B}']
- property FirstName: WideString dispid 1;
- property LastName: WideString dispid 3;
- procedure WriteData; dispid 6;
- procedure OnStartPage(const unk: IUnknown); dispid 7;
- procedure OnEndPage; dispid 8;
- end;
-
- // *********************************************************************//
- // Interface: ISQLObj
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {F4A0F764-78B1-11D2-A4D6-8AC98C355D52}
- // *********************************************************************//
- ISQLObj = interface(IDispatch)
- ['{F4A0F764-78B1-11D2-A4D6-8AC98C355D52}']
- procedure ExecuteSql; safecall;
- procedure OnStartPage(const unk: IUnknown); safecall;
- procedure OnEndPage; safecall;
- function Get_SQL: WideString; safecall;
- procedure Set_SQL(const Value: WideString); safecall;
- function Get_UseProducer: Integer; safecall;
- procedure Set_UseProducer(Value: Integer); safecall;
- property SQL: WideString read Get_SQL write Set_SQL;
- property UseProducer: Integer read Get_UseProducer write Set_UseProducer;
- end;
-
- // *********************************************************************//
- // DispIntf: ISQLObjDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {F4A0F764-78B1-11D2-A4D6-8AC98C355D52}
- // *********************************************************************//
- ISQLObjDisp = dispinterface
- ['{F4A0F764-78B1-11D2-A4D6-8AC98C355D52}']
- procedure ExecuteSql; dispid 1;
- procedure OnStartPage(const unk: IUnknown); dispid 7;
- procedure OnEndPage; dispid 8;
- property SQL: WideString dispid 2;
- property UseProducer: Integer dispid 3;
- end;
-
- CoSimpleObject = class
- class function Create: ISimpleObject;
- class function CreateRemote(const MachineName: string): ISimpleObject;
- end;
-
- CoSQLObj = class
- class function Create: ISQLObj;
- class function CreateRemote(const MachineName: string): ISQLObj;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoSimpleObject.Create: ISimpleObject;
- begin
- Result := CreateComObject(CLASS_SimpleObject) as ISimpleObject;
- end;
-
- class function CoSimpleObject.CreateRemote(const MachineName: string): ISimpleObject;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_SimpleObject) as ISimpleObject;
- end;
-
- class function CoSQLObj.Create: ISQLObj;
- begin
- Result := CreateComObject(CLASS_SQLObj) as ISQLObj;
- end;
-
- class function CoSQLObj.CreateRemote(const MachineName: string): ISQLObj;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_SQLObj) as ISQLObj;
- end;
-
- end.
-